package JVM;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author yuanx
 * @date 2023/8/18 10:17
 */

public class JvmTest {
    public static void main(String[] args) {
        System.out.println("new Date(System.currentTimeMillis()) = " + new Date(System.currentTimeMillis()));
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("YYYY-MM-dd hh:mm:ss");
        String format = simpleDateFormat.format(new Date(System.currentTimeMillis()));
        System.out.println("format = " + format);
    }
    public  void  test(){
        System.out.println("1 = " + 1);
        System.out.println("true = " + true);
    }

}
